import requests
import json

# IP对应，/predict路径也要对应
resp = requests.post("http://192.168.3.11:5001/predict",
                     files={"file": open("./predict/10.jpeg", 'rb')})

if resp.status_code == 200:
    print(json.loads(resp.content))
else:
    print("错了")
